package com.youhome.service.service.impl;

import com.youhome.service.mapper.BTemplateHtmlModuleValueMapper;
import com.youhome.service.model.BTemplateHtmlModuleValue;
import com.youhome.service.service.BTemplateHtmlModuleValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Created by chen365 on 2018/1/8.
 */
@Service
public class BTemplateHtmlModuleValueServiceImpl implements BTemplateHtmlModuleValueService {
    @Autowired
    private BTemplateHtmlModuleValueMapper bTemplateHtmlModuleValueMapper;

    @Override
    public int insertSelective(BTemplateHtmlModuleValue record) {
        record.setCtime(new Date());
        return bTemplateHtmlModuleValueMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(BTemplateHtmlModuleValue record) {
        record.setUtime(new Date());
        return bTemplateHtmlModuleValueMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteBySelectId(Long selectId) {
        return bTemplateHtmlModuleValueMapper.deleteBySelectId(selectId);
    }
}
